sgdk: asm.h Source File

sgdk

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

asm.h
Go to the documentation of this file.

    00001
    00010 #ifndef _ASM_H_
    00011 #define _ASM_H_
    00012
    00013
    00014 #define VAR2REG_B(var, reg)       asm ("move.b %0, %/"reg"" :: "r" (var) : ""reg"")
    00015 #define VAR2REG_W(var, reg)       asm ("move.w %0, %/"reg"" :: "r" (var) : ""reg"")
    00016 #define VAR2REG_L(var, reg)       asm ("move.l %0, %/"reg"" :: "r" (var) : ""reg"")
    00017
    00018 #define REG2VAR_B(reg, var)       asm ("move.b %/"reg", %0" : "=r" (var))
    00019 #define REG2VAR_W(reg, var)       asm ("move.w %/"reg", %0" : "=r" (var))
    00020 #define REG2VAR_L(reg, var)       asm ("move.l %/"reg", %0" : "=r" (var))
    00021
    00022
    00023 #endif // _ASM_H_
    00024

All Classes Files Functions Variables Typedefs Enumerations Defines